package oop_05.homework_01;

public abstract class Animal {
    private int health;
    private String name;
//
//    public void feed(Animal animal){
//        animal.eat();
//    }

    public Animal(String name,int health){
        this.name = name;
        this.health = health;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }
    public abstract void cry();
    public abstract void eat();
}
